<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
                            <!-- -------------------插值------------------------- -->
    <!-- 文本 -->
    <span id="app" v-once> 这个值不会改变：{{msg}} </span>
    <!-- 原始HTML -->
    <!-- <p id="app1">用大括号: {{rawhtml}} </p> -->
    <p id="app1">用v-html:  <span v-html="rawhtml"></span> </p>
    <!-- attribute -->
    <div id="app2">
        <button v-bind:disabled="isButtonDisabled">Button</button>
    </div>
                        <!-- ------------------使用 JavaScript 表达式------------------ -->
    <!-- 只能包含单个表达式,语句和流控制不会生效 -->

    <script src="/vue.js"></script>
    <script>
        var app = new Vue({
            el: '#app',
            data: {
                msg: 'hello'
            }
        })
        app.msg = 'bye'

        var app1 = new Vue({
            el: '#app1',
            data: {
                rawhtml: '<span style="color: red">Red</span> '
            }
        })
        var app2 = new Vue({
            el: '#app2',
            data: {
                isButtonDisabled: false
            }
        })
    </script>
</body>
</html>